package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.invoicings.entity.ReceiptDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReceiptDetailMapper extends BaseMapper<ReceiptDetail> {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    ReceiptDetail selectById(Integer id);

    /**
     * 查询所有采购到货明细
     * @param map
     * @return
     */
    List<ReceiptDetail> selectReceiptDetailAll(Map<String,Object> map);

    /**
     * 根据到货单id获取采购到货单明细集合
     * @param id
     * @return
     */
    List<ReceiptDetail> selectReceiptDetailById(Integer id);

    /**
     * 根据id获取采购到货单明细对象
     * @param id
     * @return
     */
    ReceiptDetail selectReceiptDetailByIds(Integer id);

}
